#! /bin/sh

.PHONY: clean

SRC= ioloop.cpp task.cpp timer.cpp common.cpp
TARGET=libdatashuttle.a
OBJS=
OBJS= $(if $(SRC),$(SRC:%.cpp=%.o),,)
VPATH= ../
$(TARGET):$(SRC)
	c++ -c -Wall $^
	ar crv $(TARGET) $(OBJS)
	ranlib $(TARGET)

clean:
	-rm $(OBJS)
	-rm $(TARGET)
